/**
  * 获取分类数据
  */
 function getCategoriesData() {
  let categories = [
    {
      id: 1,
      "name": "蔬菜豆制品",
      "iconUrl": "http://n.sinaimg.cn/photo/1_img/upload/cf3881ab/799/w1000h599/20200527/c317-iufmpmn0437916.jpg"
    },
    {
      id: 2,
      "name": "肉蛋禽",
      "iconUrl": "http://n.sinaimg.cn/photo/1_img/upload/cf3881ab/799/w1000h599/20200527/c317-iufmpmn0437916.jpg"
    },
    {
      id: 3,
      "name": "鱼虾贝蟹",
      "iconUrl": "http://n.sinaimg.cn/photo/1_img/upload/cf3881ab/799/w1000h599/20200527/c317-iufmpmn0437916.jpg"
    },
    {
      id: 4,
      "name": "新鲜水果",
      "iconUrl": "http://n.sinaimg.cn/photo/1_img/upload/cf3881ab/799/w1000h599/20200527/c317-iufmpmn0437916.jpg"
    },
    {
      id: 5,
      "name": "乳品烘焙",
      "iconUrl": "http://n.sinaimg.cn/photo/1_img/upload/cf3881ab/799/w1000h599/20200527/c317-iufmpmn0437916.jpg"
    },
    {
      id: 6,
      "name": "粮油调味",
      "iconUrl": "http://n.sinaimg.cn/photo/1_img/upload/cf3881ab/799/w1000h599/20200527/c317-iufmpmn0437916.jpg"
    },
    {
      id: 7,
      "name": "方便速食",
      "iconUrl": "http://n.sinaimg.cn/photo/1_img/upload/cf3881ab/799/w1000h599/20200527/c317-iufmpmn0437916.jpg"
    },
    {
      id: 8,
      "name": "休闲零食",
      "iconUrl": "http://n.sinaimg.cn/photo/1_img/upload/cf3881ab/799/w1000h599/20200527/c317-iufmpmn0437916.jpg"
    },
    {
      id: 9,
      "name": "酒水饮料",
      "iconUrl": "http://n.sinaimg.cn/photo/1_img/upload/cf3881ab/799/w1000h599/20200527/c317-iufmpmn0437916.jpg"
    },
    {
      id: 10,
      "name": "餐厨用具",
      "iconUrl": "http://n.sinaimg.cn/photo/1_img/upload/cf3881ab/799/w1000h599/20200527/c317-iufmpmn0437916.jpg"
    },
  ];

  return categories;
}

function getCommodities(categotyId) {
  if(categotyId==1)return null;
  let commodites = [
    {
      "title": "进口香蕉 约500g",
      "subtitle": "香甜软糯 老少皆宜",
      "coverUrl": "http://n.sinaimg.cn/photo/1_img/upload/cf3881ab/799/w1000h599/20200527/c317-iufmpmn0437916.jpg",
      "price": 5.90,
    },
    {
      "title": "进口香蕉 约500g",
      "subtitle": "香甜软糯 老少皆宜",
      "coverUrl": "http://n.sinaimg.cn/photo/1_img/upload/cf3881ab/799/w1000h599/20200527/c317-iufmpmn0437916.jpg",
      "price": 5.90,
    },
    {
      "title": "进口香蕉 约500g",
      "subtitle": "香甜软糯 老少皆宜",
      "coverUrl": "http://n.sinaimg.cn/photo/1_img/upload/cf3881ab/799/w1000h599/20200527/c317-iufmpmn0437916.jpg",
      "price": 5.90,
    },
    {
      "title": "进口香蕉 约500g",
      "subtitle": "香甜软糯 老少皆宜",
      "coverUrl": "http://n.sinaimg.cn/photo/1_img/upload/cf3881ab/799/w1000h599/20200527/c317-iufmpmn0437916.jpg",
      "price": 5.90,
    },
    {
      "title": "进口香蕉 约500g",
      "subtitle": "香甜软糯 老少皆宜",
      "coverUrl": "http://n.sinaimg.cn/photo/1_img/upload/cf3881ab/799/w1000h599/20200527/c317-iufmpmn0437916.jpg",
      "price": 5.90,
    },
    {
      "title": "进口香蕉 约500g",
      "subtitle": "香甜软糯 老少皆宜",
      "coverUrl": "http://n.sinaimg.cn/photo/1_img/upload/cf3881ab/799/w1000h599/20200527/c317-iufmpmn0437916.jpg",
      "price": 5.90,
    },
    {
      "title": "进口香蕉 约500g",
      "subtitle": "香甜软糯 老少皆宜",
      "coverUrl": "http://n.sinaimg.cn/photo/1_img/upload/cf3881ab/799/w1000h599/20200527/c317-iufmpmn0437916.jpg",
      "price": 5.90,
    },
    {
      "title": "进口香蕉 约500g",
      "subtitle": "香甜软糯 老少皆宜",
      "coverUrl": "http://n.sinaimg.cn/photo/1_img/upload/cf3881ab/799/w1000h599/20200527/c317-iufmpmn0437916.jpg",
      "price": 5.90,
    },
  ];

  return commodites;
}

module.exports.getCategoriesData = getCategoriesData
module.exports.getCommodities = getCommodities